dimanche 27 novembre 2016

overwrite emberJS methods

I need to overwrite a method in a plugin. Here is what i'm doing

import getUploadMarkdown from 'discourse/lib/utilities';
getUploadMarkdown = function(arg) { //new code }

But i get error getUploadMarkdown is read-only. How can i overwrite a es6 method?




Aucun commentaire:

Enregistrer un commentaire