Sha256: 9f140023b662dcddd059465a556f34b7b4921fed094a15da131bbe77a9e18a27
Contents?: true
Size: 524 Bytes
Versions: 85
Compression:
Stored size: 524 Bytes
Contents
//Do some segue with two views (tp1 and tp2) function if_segue_do(name, tp1, tp2) { console.log("if segue do"); if (if_segue_name_to_call[name] === undefined) { throw "You have not registered a segue with the name: "+name; } $sel1 = if_ui_tp_to_selector[tp1]; $sel2 = if_ui_tp_to_selector[tp2]; if_segue_name_to_call[name]($sel1, $sel2); } //Your segue function should accept two views $sel1, $sel2 if_segue_name_to_call = { } function segue(name, call_this) { if_segue_name_to_call[name] = call_this; }
Version data entries
85 entries across 85 versions & 1 rubygems