mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Quick logical shortcut
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
init: function(el) {
|
init: function(el) {
|
||||||
if(el) {
|
if(!el) { return; }
|
||||||
|
|
||||||
// check if we've already created a Toggle instance for this element
|
// check if we've already created a Toggle instance for this element
|
||||||
if(!el.component) {
|
if(!el.component) {
|
||||||
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
return el.component;
|
return el.component;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user