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