accessing method like get in didInsertElement of view
im trying to using jquery drag and drop and i want to using some tools of
ember in my view but i cant .
App.myView = Ember.View.extend({
tagName:'li',
didInsertElement:function(){
this.$().draggable({
start:function(event,ui){
console.log(this.get('tagName'));
}
});
}
});
but i get an error :
Uncaught TypeError: Object #<HTMLLIElement> has no method 'get'
can i use methods like get/set or other in didInsertElement in jquery
section ?
No comments:
Post a Comment